<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<jsp:useBean id="con000" class="com.tpc.control.bean.Con000"
	scope="session" />
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
if (con000.getLogon() == null || !con000.getLogon())
	response.sendRedirect(basePath+"/con000/con000.faces");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>CON-100: Order Reservation</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="./css/custom.css">
		<link rel="stylesheet" type="text/css" href="./css/template01.css">
	</head>

	<body>
		<div id="wrapper">
		<f:view>
		<f:loadBundle var="bundle" basename="com.tpc.control.message.ResourceBundle" />
		<div id="header">
			<p><h:outputText value="#{bundle.project_name}"/></p>		 	   
		</div>
        <div id="navigation">
        	<h:outputText value="#{bundle.con100}" styleClass="header2"/>
		</div>
		<div id="content">
			<h:form id="con100Form">
				<h:panelGrid columns="2" styleClass="normal">
					<h:outputText value="#{bundle.reserve_no}" styleClass="headerSubject"/>
					<h:inputText value="#{con100.reserveNo}"></h:inputText>
				</h:panelGrid>
				<h:commandButton value="#{bundle.search}" action="#{con100.searchReserve}"></h:commandButton>
				<h:commandButton value="#{bundle.create}" action="#{con100.createReserve}"></h:commandButton>
				<h:messages errorClass="errorMessages"></h:messages>
			</h:form>
		</div>  
		<div id="footer">
<h:form id="footerForm">
	<h:panelGrid columns="2" width="500px" styleClass="normal2">
	<h:panelGroup>
		<h:outputText value="#{bundle.current_user}" styleClass="headerSubject"/>
		<h:outputText value="#{con000.userName}"/>
	</h:panelGroup>
	<h:panelGroup>
	<h:commandLink value="Main Menu" action="con001" styleClass="header2"></h:commandLink>
	<h:outputText value="|"/>
	<h:commandLink value="Logoff" action="#{con000.logoff}" styleClass="header2"></h:commandLink>
	</h:panelGroup>
	</h:panelGrid>
</h:form>
		</div>
		</f:view>
		</div>
	</body>
</html>